package com.ldh.logging.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiuDehuai
 * @fileName:LoggingController
 * @Date:2023/8/8 17:14
 */
@Slf4j
@RestController
public class LoggingController {

    /**
     * 用于打印日志级别
     * @return
     */
    @GetMapping("level")
    public Boolean level() {
        log.trace("trace level");
        log.debug("debug level");
        log.info("info level");
        log.warn("warn level");
        log.error("error level");
        return true;
    }
}
